<template>

  <div class="search">
    <van-notice-bar
  left-icon="volume-o"
  text="搜索待开发，敬请期待..."
/>
    <form action="/">
      <van-search
        v-model="value"
        show-action
        placeholder="请输入搜索关键词"
        @search="onSearch"
        @cancel="onCancel"
      />
    </form>
  </div>
</template>

<script>
import { Toast } from 'vant';
import { NoticeBar } from 'vant';
export default {
  data() {
    return {
      value: '',
    };
  },
  methods: {
    onSearch(val) { 
      Toast(val);
    },
    onCancel() {
      this.$router.go(-1)
    },
  },
};
</script>

<style scoped lang="scss">
.search {
  margin-top: 46px;
}

</style>
